home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / misc / ispell-3.001 / ispell-3~ / ispell-3.1 / Makekit (.txt) < prev    next >
Microsoft Windows Help File Content  |  1995-10-12  |  7KB  |  217 lines

  1. : Use /bin/sh
  2. # $Id: Makekit,v 1.39 1995/10/11 04:58:07 geoff Exp $
  3. # Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA
  4. # All rights reserved.
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions
  7. # are met:
  8. # 1. Redistributions of source code must retain the above copyright
  9. #    notice, this list of conditions and the following disclaimer.
  10. # 2. Redistributions in binary form must reproduce the above copyright
  11. #    notice, this list of conditions and the following disclaimer in the
  12. #    documentation and/or other materials provided with the distribution.
  13. # 3. All modifications to the source code must be clearly marked as
  14. #    such.  Binary redistributions based on modified source code
  15. #    must be clearly marked as modified versions in the documentation
  16. #    and/or other materials provided with the distribution.
  17. # 4. All advertising materials mentioning features or use of this software
  18. #    must display the following acknowledgment:
  19. #      This product includes software developed by Geoff Kuenning and
  20. #      other unpaid contributors.
  21. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  22. #    products derived from this software without specific prior
  23. #    written permission.
  24. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  25. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  28. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  30. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  31. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  32. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  33. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  34. # SUCH DAMAGE.
  35. #    Make an ispell distribution kit.  This is not a clever script,
  36. #    just a handy one.
  37. #    Usage:
  38. #    Makekit [-c] [-d destdir] [-e]
  39. #    destdir is the directory in which the kits will be made;  you will
  40. #    want to pick someplace that has lots of space.
  41. #    If -e is specified, the list of files in the kit is echoed to
  42. #    stdout and no kit is made.
  43. #    If -c is specified, the intermediate dictionary files are cleaned up.
  44. # $Log: Makekit,v $
  45. # Revision 1.39  1995/10/11  04:58:07  geoff
  46. # Add the Portuguese language files
  47. # Revision 1.38  1995/01/15  00:54:45  geoff
  48. # Add iwhich and the new Spanish support
  49. # Revision 1.37  1994/05/18  02:56:25  geoff
  50. # Remember to list dictionaries with the -e switch
  51. # Revision 1.36  1994/04/27  02:58:42  geoff
  52. # Add the new English-dialect Makefiles
  53. # Revision 1.35  1994/02/07  08:39:49  geoff
  54. # Don't delete everything when we're only echoing names
  55. # Revision 1.34  1994/01/25  08:51:16  geoff
  56. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  57. posting=3.1
  58. maxsize=60000        # This leaves room for some headers
  59. clean=false
  60. destdir=kits
  61. echolist=false
  62. PATH=`pwd`:$PATH; export PATH
  63. USAGE="Usage:  Makekit [-c] [-d destdir] [-e]"
  64. while [ $# -gt 0 ]
  65.     case "$1" in
  66.         clean=true
  67.         shift
  68.         ;;
  69.         destdir="$2"
  70.         shift; shift
  71.         ;;
  72.         echolist=true
  73.         shift
  74.         ;;
  75.         echo "$USAGE" 1>&2
  76.         exit 1
  77.         ;;
  78.     esac
  79. case "$destdir" in
  80.     /*)
  81.     *)
  82.     destdir=`pwd`/$destdir
  83. flist='
  84. Contributors
  85. README
  86. Magiclines
  87. Makefile
  88. Makekit
  89. Makepatch
  90. WISHES
  91. buildhash.c
  92. config.X
  93. correct.c
  94. defmt.c
  95. dump.c
  96. fields.3
  97. fields.c
  98. fields.h
  99. findaffix.X
  100. good.c
  101. hash.c
  102. icombine.c
  103. ijoin.c
  104. ishar
  105. ispell.1X
  106. ispell.4
  107. ispell.c
  108. ispell.el
  109. ispell.h
  110. ispell.texinfo
  111. iwhich
  112. local.h.samp
  113. lookup.c
  114. makedict.sh
  115. makedent.c
  116. makeshar
  117. munchlist.X
  118. parse.y
  119. proto.h
  120. splitdict
  121. subset.X
  122. term.c
  123. tgood.c
  124. tree.c
  125. tryaffix.X
  126. unsq.c
  127. version.h
  128. xgets.c
  129. zapdups.X
  130. languages/Makefile
  131. languages/Where
  132. languages/fix8bit.c
  133. languages/altamer/Makefile
  134. languages/american/Makefile
  135. languages/british/Makefile
  136. languages/dansk/Makefile
  137. languages/dansk/dansk.7bit
  138. languages/deutsch/Makefile
  139. languages/deutsch/deutsch.7bit
  140. languages/deutsch/deutsch-alt.7bit
  141. languages/english/Makefile
  142. languages/english/english.4l
  143. languages/english/english.aff
  144. languages/english/msgs.h
  145. languages/espanol/Makefile
  146. languages/espanol/castellano.7bit
  147. languages/espanol/espanol.7bit
  148. languages/francais/Makefile
  149. languages/francais/francais.7bit
  150. languages/francais/francais-alt.7bit
  151. languages/nederlands/Makefile
  152. languages/nederlands/nederlands.7bit
  153. languages/norsk/Makefile
  154. languages/norsk/norsk.7bit
  155. languages/portugues/Makefile
  156. languages/portugues/portugues.aff
  157. languages/svenska/Makefile
  158. languages/svenska/svenska.7bit
  159. addons/nextispell/Makefile
  160. addons/nextispell/README
  161. addons/nextispell/configure
  162. addons/nextispell/configure.h.template
  163. addons/nextispell/configureTeX
  164. addons/nextispell/nextispell.m
  165. addons/nextispell/services.template
  166. addons/xspell.shar
  167. if $echolist
  168.     echo $flist
  169.     echo languages/english/*.[0-3]
  170.     exit 0
  171. [ -d "$destdir" ]  ||  mkdir "$destdir"
  172. rm -f $destdir/Post${posting}.??.shar
  173. # Make the main shar files
  174. cursize=0
  175. files=
  176. chmod +x makeshar ishar
  177. sharno=`makeshar -n -m $maxsize -o $destdir/Post${posting}. -pX $flist`
  178. # Set up to make dictionary files
  179. chmod +x splitdict
  180. [ -d "$destdir/languages" ]  ||  mkdir "$destdir/languages"
  181. # Make the English dictionaries
  182. [ -d "$destdir/languages/english" ]  ||  mkdir "$destdir/languages/english"
  183. rm -f $destdir/languages/english/*.?.??
  184. ./splitdict $maxsize languages/english/english.0 \
  185.   $destdir/languages/english/eng.0.
  186. ./splitdict $maxsize languages/english/english.1 \
  187.   $destdir/languages/english/eng.1.
  188. ./splitdict $maxsize languages/english/english.2 \
  189.   $destdir/languages/english/eng.2.
  190. ./splitdict $maxsize languages/english/english.3 \
  191.   $destdir/languages/english/eng.3.
  192. ./splitdict $maxsize languages/english/american.0 \
  193.   $destdir/languages/english/amer.0.
  194. ./splitdict $maxsize languages/english/american.1 \
  195.   $destdir/languages/english/amer.1.
  196. ./splitdict $maxsize languages/english/american.2 \
  197.   $destdir/languages/english/amer.2.
  198. ./splitdict $maxsize languages/english/altamer.0 \
  199.   $destdir/languages/english/altamer.0.
  200. ./splitdict $maxsize languages/english/altamer.1 \
  201.   $destdir/languages/english/altamer.1.
  202. ./splitdict $maxsize languages/english/altamer.2 \
  203.   $destdir/languages/english/altamer.2.
  204. ./splitdict $maxsize languages/english/british.0 \
  205.   $destdir/languages/english/brit.0.
  206. ./splitdict $maxsize languages/english/british.1 \
  207.   $destdir/languages/english/brit.1.
  208. ./splitdict $maxsize languages/english/british.2 \
  209.   $destdir/languages/english/brit.2.
  210. sharno=`expr $sharno + 1`
  211. cd $destdir
  212. makeshar -f $sharno -m $maxsize -o $destdir/Post${posting}. -pX \
  213.   languages/english/eng.?.?? languages/english/amer.?.?? \
  214.   languages/english/altamer.?.?? languages/english/brit.?.??
  215. if $clean
  216.     rm -f $destdir/languages/english/*.?.??
  217.